{extend  name="Index/index" /}

        <!-- 内容区域 -->
        <div class="tpl-content-wrapper">
            {block name="main"}
            <div class="row-content am-cf">
                <div class="row">
                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                        <div class="widget am-cf">
                            <div class="widget-head am-cf">
                                <div class="widget-title  am-cf">课程列表</div>


                            </div>
                            <div class="widget-body  am-fr">

                                
                                

                                <div class="am-u-sm-12">
                                    <table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black " id="example-r">
                                        <thead>
                                            <tr>
                                                <th>ID</th>
                                                <th>课程</th>
                                                <th>简介</th>
                                                <th>价格</th>
                                                <th>状态</th>
                                                <th>操作</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                         {volist name="data" id="v" }
                                            <tr class="gradeX">
                                                <td>{$v['id']}</td>
                                                <td>{$v['coursename']}</td>
                                                <td><div class="am-text-truncate" style="width:200px;">{$v['desc']}</div></td>
                                                <td>{$v['price']}</td>
                                                <td>
                                                {switch name="$v.display"}
                                                {case value="1"}显示{/case}
                                                {case value="2"}隐藏{/case}
                                                {/switch}  
                                                </td>
                                                <td>
                                                    <div class="tpl-table-black-operation">
                                                        <a href="edit/{$v.id}">
                                                            <i class="am-icon-pencil"></i> 编辑
                                                        </a>
                                                        <a href="delete/{$v.id}" class="tpl-table-black-operation-del">
                                                            <i class="am-icon-trash"></i> 删除
                                                        </a>
                                                    </div>
                                                </td>
                                            </tr>
                                            {/volist}
                                            <!-- more data -->
                                        </tbody>
                                    </table>
                                </div>
                              
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </div>
    {/block}



    
    {block name="myjs"}
     












   {/block}